export default {
  path: '/',
  name: '',
  component: () => import('@/layouts/default.vue'),
  redirect: '/dashboard',
  meta: {
    requiresAuth: true,
    title: '基础',
    icon: 'icon-home',
  },
  children: [
    {
      path: '/dashboard',
      name: 'dashboard',
      component: () => import('@/views/dashboard/index.vue'),
      meta: {
        title: '公告板',
        icon: 'icon-dashboard',
      },
    },
    {
      path: '/article',
      name: 'article',
      component: () => import('@/views/article/index.vue'),
      meta: {
        title: '文章管理',
        icon: 'icon-dashboard',
      },
    },
    {
      path: '/model',
      name: 'model',
      component: () => import('@/views/model/index.vue'),
      meta: {
        title: '栏目管理',
        icon: 'icon-dashboard',
      },
    },
    {
      path: '/category',
      name: 'category',
      component: () => import('@/views/category/index.vue'),
      meta: {
        title: '文章管理',
        icon: 'icon-dashboard',
      },
    },
    {
      path: '/banner',
      name: 'banner',
      component: () => import('@/views/banner/index.vue'),
      meta: {
        title: 'banner管理',
        icon: 'icon-dashboard',
      },
    },
    {
      path: '/apps',
      name: 'apps',
      component: () => import('@/views/apps/index.vue'),
      meta: {
        title: '应用管理',
        icon: 'icon-dashboard',
      },
    },
    {
      path: '/link',
      name: 'link',
      component: () => import('@/views/link/index.vue'),
      meta: {
        title: '友情链接',
        icon: 'icon-dashboard',
      },
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('@/views/about/index.vue'),
      meta: {
        title: '关于我',
        icon: 'icon-dashboard',
      },
    },
    {
      path: '/user',
      name: 'user',
      component: () => import('@/views/user/index.vue'),
      meta: {
        title: '个人信息',
        icon: 'icon-dashboard',
      },
    },
  ],
}
